PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Drawing / Trails Mirror / Tripgnosis - Astral Calculations.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=2 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=0 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=2.000 |
| 8 | fDecay=0.980 |
| 9 | fVideoEchoZoom=1.010 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=7 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=0 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=1.286 |
| 27 | fWaveSmoothing=0.630 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.710 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=0.010 |
| 32 | fWarpScale=100.000 |
| 33 | fZoomExponent=0.32104 |
| 34 | fShader=0.000 |
| 35 | zoom=1.00000 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.650 |
| 45 | wave_g=0.650 |
| 46 | wave_b=0.650 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.005 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.000 |
| 55 | ib_r=0.000 |
| 56 | ib_g=0.000 |
| 57 | ib_b=0.000 |
| 58 | ib_a=1.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.000 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_point1=ma=ma+(above(bass,1)*3.1415*.01*bass); |
| 89 | wave_0_per_point2=ma=ma-(above(treb,1)*3.1415*.01*treb); |
| 90 | wave_0_per_point3= |
| 91 | wave_0_per_point4=mx=mx+(.0002*cos(ma)); |
| 92 | wave_0_per_point5=my=my+(.0002*sin(ma)); |
| 93 | wave_0_per_point6= |
| 94 | wave_0_per_point7=mx=if(above(mx,.9),(.9-mx),mx); |
| 95 | wave_0_per_point8=my=if(above(my,.9),(.9-my),my); |
| 96 | wave_0_per_point9=mx=if(below(mx,.1),(.9+mx),mx); |
| 97 | wave_0_per_point10=my=if(below(my,.1),(.9+my),my); |
| 98 | wave_0_per_point11= |
| 99 | wave_0_per_point12=x=mx; |
| 100 | wave_0_per_point13=y=my; |
| 101 | wave_0_per_point14= |
| 102 | wave_0_per_point15=a=(above(bass+mid+treb,.8)); |
| 103 | wavecode_1_enabled=1 |
| 104 | wavecode_1_samples=512 |
| 105 | wavecode_1_sep=0 |
| 106 | wavecode_1_bSpectrum=0 |
| 107 | wavecode_1_bUseDots=0 |
| 108 | wavecode_1_bDrawThick=1 |
| 109 | wavecode_1_bAdditive=0 |
| 110 | wavecode_1_scaling=1.00000 |
| 111 | wavecode_1_smoothing=0.50000 |
| 112 | wavecode_1_r=1.000 |
| 113 | wavecode_1_g=1.000 |
| 114 | wavecode_1_b=1.000 |
| 115 | wavecode_1_a=1.000 |
| 116 | wave_1_per_point1=ma=ma+(above(bass,1)*3.1415*.05*bass); |
| 117 | wave_1_per_point2=ma=ma-(above(mid,1)*3.1415*.05*mid); |
| 118 | wave_1_per_point3= |
| 119 | wave_1_per_point4=mx=mx+(.0001*cos(ma)); |
| 120 | wave_1_per_point5=my=my+(.0001*sin(ma)); |
| 121 | wave_1_per_point6= |
| 122 | wave_1_per_point7=mx=if(above(mx,.9),(.9-mx),mx); |
| 123 | wave_1_per_point8=my=if(above(my,.9),(.9-my),my); |
| 124 | wave_1_per_point9=mx=if(below(mx,.1),(.9+mx),mx); |
| 125 | wave_1_per_point10=my=if(below(my,.1),(.9+my),my); |
| 126 | wave_1_per_point11= |
| 127 | wave_1_per_point12=x=mx; |
| 128 | wave_1_per_point13=y=my; |
| 129 | wave_1_per_point14= |
| 130 | wave_1_per_point15=a=(above(bass+mid+treb,.1)); |
| 131 | wavecode_2_enabled=1 |
| 132 | wavecode_2_samples=512 |
| 133 | wavecode_2_sep=0 |
| 134 | wavecode_2_bSpectrum=0 |
| 135 | wavecode_2_bUseDots=0 |
| 136 | wavecode_2_bDrawThick=1 |
| 137 | wavecode_2_bAdditive=0 |
| 138 | wavecode_2_scaling=1.00000 |
| 139 | wavecode_2_smoothing=0.50000 |
| 140 | wavecode_2_r=1.000 |
| 141 | wavecode_2_g=1.000 |
| 142 | wavecode_2_b=1.000 |
| 143 | wavecode_2_a=1.000 |
| 144 | wave_2_per_point1=ma=ma+(above(mid,1)*3.1415*.01*mid); |
| 145 | wave_2_per_point2=ma=ma-(above(treb,1)*3.1415*.01*treb); |
| 146 | wave_2_per_point3= |
| 147 | wave_2_per_point4=mx=mx+(.0004*cos(ma)); |
| 148 | wave_2_per_point5=my=my+(.0004*sin(ma)); |
| 149 | wave_2_per_point6= |
| 150 | wave_2_per_point7=mx=if(above(mx,.9),(.9-mx),mx); |
| 151 | wave_2_per_point8=my=if(above(my,.9),(.9-my),my); |
| 152 | wave_2_per_point9=mx=if(below(mx,.1),(.9+mx),mx); |
| 153 | wave_2_per_point10=my=if(below(my,.1),(.9+my),my); |
| 154 | wave_2_per_point11= |
| 155 | wave_2_per_point12=x=mx; |
| 156 | wave_2_per_point13=y=my; |
| 157 | wave_2_per_point14= |
| 158 | wave_2_per_point15=a=(above(bass+mid+treb,.3)); |
| 159 | wavecode_3_enabled=1 |
| 160 | wavecode_3_samples=512 |
| 161 | wavecode_3_sep=0 |
| 162 | wavecode_3_bSpectrum=0 |
| 163 | wavecode_3_bUseDots=0 |
| 164 | wavecode_3_bDrawThick=1 |
| 165 | wavecode_3_bAdditive=0 |
| 166 | wavecode_3_scaling=1.00000 |
| 167 | wavecode_3_smoothing=0.50000 |
| 168 | wavecode_3_r=1.000 |
| 169 | wavecode_3_g=1.000 |
| 170 | wavecode_3_b=1.000 |
| 171 | wavecode_3_a=1.000 |
| 172 | wave_3_per_point1=ma=ma+(above(bass,.5)*3.1415*.02*bass); |
| 173 | wave_3_per_point2=ma=ma-(above(treb,.5)*3.1415*.02*treb); |
| 174 | wave_3_per_point3= |
| 175 | wave_3_per_point4=mx=mx+(.0008*cos(ma)); |
| 176 | wave_3_per_point5=my=my+(.0008*sin(ma)); |
| 177 | wave_3_per_point6= |
| 178 | wave_3_per_point7=mx=if(above(mx,.9),(.9-mx),mx); |
| 179 | wave_3_per_point8=my=if(above(my,.9),(.9-my),my); |
| 180 | wave_3_per_point9=mx=if(below(mx,.1),(.9+mx),mx); |
| 181 | wave_3_per_point10=my=if(below(my,.1),(.9+my),my); |
| 182 | wave_3_per_point11= |
| 183 | wave_3_per_point12=x=mx; |
| 184 | wave_3_per_point13=y=my; |
| 185 | wave_3_per_point14= |
| 186 | wave_3_per_point15=a=(above(bass+mid+treb,.2)); |
| 187 | shapecode_0_enabled=0 |
| 188 | shapecode_0_sides=4 |
| 189 | shapecode_0_additive=0 |
| 190 | shapecode_0_thickOutline=0 |
| 191 | shapecode_0_textured=1 |
| 192 | shapecode_0_num_inst=1 |
| 193 | shapecode_0_x=0.500 |
| 194 | shapecode_0_y=0.500 |
| 195 | shapecode_0_rad=1.79142 |
| 196 | shapecode_0_ang=0.00000 |
| 197 | shapecode_0_tex_ang=0.62832 |
| 198 | shapecode_0_tex_zoom=1.00000 |
| 199 | shapecode_0_r=1.000 |
| 200 | shapecode_0_g=1.000 |
| 201 | shapecode_0_b=1.000 |
| 202 | shapecode_0_a=0.000 |
| 203 | shapecode_0_r2=0.000 |
| 204 | shapecode_0_g2=0.000 |
| 205 | shapecode_0_b2=0.000 |
| 206 | shapecode_0_a2=1.000 |
| 207 | shapecode_0_border_r=1.000 |
| 208 | shapecode_0_border_g=1.000 |
| 209 | shapecode_0_border_b=1.000 |
| 210 | shapecode_0_border_a=0.000 |
| 211 | shapecode_1_enabled=0 |
| 212 | shapecode_1_sides=4 |
| 213 | shapecode_1_additive=0 |
| 214 | shapecode_1_thickOutline=0 |
| 215 | shapecode_1_textured=0 |
| 216 | shapecode_1_num_inst=1 |
| 217 | shapecode_1_x=0.500 |
| 218 | shapecode_1_y=0.500 |
| 219 | shapecode_1_rad=0.10000 |
| 220 | shapecode_1_ang=0.00000 |
| 221 | shapecode_1_tex_ang=0.00000 |
| 222 | shapecode_1_tex_zoom=1.00000 |
| 223 | shapecode_1_r=1.000 |
| 224 | shapecode_1_g=0.000 |
| 225 | shapecode_1_b=0.000 |
| 226 | shapecode_1_a=1.000 |
| 227 | shapecode_1_r2=0.000 |
| 228 | shapecode_1_g2=1.000 |
| 229 | shapecode_1_b2=0.000 |
| 230 | shapecode_1_a2=0.000 |
| 231 | shapecode_1_border_r=1.000 |
| 232 | shapecode_1_border_g=1.000 |
| 233 | shapecode_1_border_b=1.000 |
| 234 | shapecode_1_border_a=0.100 |
| 235 | shapecode_2_enabled=0 |
| 236 | shapecode_2_sides=4 |
| 237 | shapecode_2_additive=0 |
| 238 | shapecode_2_thickOutline=0 |
| 239 | shapecode_2_textured=0 |
| 240 | shapecode_2_num_inst=1 |
| 241 | shapecode_2_x=0.500 |
| 242 | shapecode_2_y=0.500 |
| 243 | shapecode_2_rad=0.10000 |
| 244 | shapecode_2_ang=0.00000 |
| 245 | shapecode_2_tex_ang=0.00000 |
| 246 | shapecode_2_tex_zoom=1.00000 |
| 247 | shapecode_2_r=1.000 |
| 248 | shapecode_2_g=0.000 |
| 249 | shapecode_2_b=0.000 |
| 250 | shapecode_2_a=1.000 |
| 251 | shapecode_2_r2=0.000 |
| 252 | shapecode_2_g2=1.000 |
| 253 | shapecode_2_b2=0.000 |
| 254 | shapecode_2_a2=0.000 |
| 255 | shapecode_2_border_r=1.000 |
| 256 | shapecode_2_border_g=1.000 |
| 257 | shapecode_2_border_b=1.000 |
| 258 | shapecode_2_border_a=0.100 |
| 259 | shapecode_3_enabled=0 |
| 260 | shapecode_3_sides=4 |
| 261 | shapecode_3_additive=0 |
| 262 | shapecode_3_thickOutline=0 |
| 263 | shapecode_3_textured=0 |
| 264 | shapecode_3_num_inst=1 |
| 265 | shapecode_3_x=0.500 |
| 266 | shapecode_3_y=0.500 |
| 267 | shapecode_3_rad=0.10000 |
| 268 | shapecode_3_ang=0.00000 |
| 269 | shapecode_3_tex_ang=0.00000 |
| 270 | shapecode_3_tex_zoom=1.00000 |
| 271 | shapecode_3_r=1.000 |
| 272 | shapecode_3_g=0.000 |
| 273 | shapecode_3_b=0.000 |
| 274 | shapecode_3_a=1.000 |
| 275 | shapecode_3_r2=0.000 |
| 276 | shapecode_3_g2=1.000 |
| 277 | shapecode_3_b2=0.000 |
| 278 | shapecode_3_a2=0.000 |
| 279 | shapecode_3_border_r=1.000 |
| 280 | shapecode_3_border_g=1.000 |
| 281 | shapecode_3_border_b=1.000 |
| 282 | shapecode_3_border_a=0.100 |
| 283 | per_frame_init_1=x1 = 0; |
| 284 | per_frame_init_2=y1 = 0; |
| 285 | per_frame_1=decay = 0.25; |
| 286 | per_frame_2=xx1 = xx1*0.9 + (bass)*0.01; |
| 287 | per_frame_3=xx2 = xx2*0.9 + (treb)*0.01; |
| 288 | per_frame_4=yy1 = yy1*0.94 + (treb+bass)*0.0075; |
| 289 | per_frame_5= |
| 290 | per_frame_6=x1 = 0.5 + (xx1-xx2)*2; |
| 291 | per_frame_7=y1 = 0.4 + yy1; |
| 292 | per_frame_8= |
| 293 | per_frame_9=x1 = max(0,min(1,x1)); |
| 294 | per_frame_10=y1 = max(0,min(1,y1)); |
| 295 | per_frame_11=//x2 = 0;y2 = 0;x3 = 0;y3 = 0;x4 = 0;y4 = 0; |
| 296 | per_frame_12= |
| 297 | per_frame_13=spring = 50; |
| 298 | per_frame_14=grav = 2; |
| 299 | per_frame_15=resist = 5; |
| 300 | per_frame_16=bounce = 0.75; |
| 301 | per_frame_17=dt = 0.0005; |
| 302 | per_frame_18= |
| 303 | per_frame_19=spx2 = (x1+x3-2*x2)*spring; |
| 304 | per_frame_20=spy2 = (y1+y3-2*y2)*spring; |
| 305 | per_frame_21=spx3 = (x2+x4-2*x3)*spring; |
| 306 | per_frame_22=spy3 = (y2+y4-2*y3)*spring; |
| 307 | per_frame_23=spx4 = (x3-x4)*spring; |
| 308 | per_frame_24=spy4 = (y3-y4)*spring; |
| 309 | per_frame_25= |
| 310 | per_frame_26=vx2 = vx2*(1-resist*dt) + dt*(spx2); |
| 311 | per_frame_27=vy2 = vy2*(1-resist*dt) + dt*(spy2-grav); |
| 312 | per_frame_28=vx3 = vx3*(1-resist*dt) + dt*(spx3); |
| 313 | per_frame_29=vy3 = vy3*(1-resist*dt) + dt*(spy3-grav); |
| 314 | per_frame_30=vx4 = vx4*(1-resist*dt) + dt*(spx4); |
| 315 | per_frame_31=vy4 = vy4*(1-resist*dt) + dt*(spy4-grav); |
| 316 | per_frame_32= |
| 317 | per_frame_33=x2 = x2 + vx2; |
| 318 | per_frame_34=y2 = y2 + vy2; |
| 319 | per_frame_35=x3 = x3 + vx3; |
| 320 | per_frame_36=y3 = y3 + vy3; |
| 321 | per_frame_37=x4 = x4 + vx4; |
| 322 | per_frame_38=y4 = y4 + vy4; |
| 323 | per_frame_39= |
| 324 | per_frame_40=vx2 = if(above(x2,0.1),vx2,abs(vx2)*bounce); |
| 325 | per_frame_41=vx2 = if(below(x2,0.9),vx2,-abs(vx2)*bounce); |
| 326 | per_frame_42=vx3 = if(above(x3,0.1),vx3,abs(vx3)*bounce); |
| 327 | per_frame_43=vx3 = if(below(x3,0.9),vx3,-abs(vx3)*bounce); |
| 328 | per_frame_44=vx4 = if(above(x4,0.1),vx4,abs(vx4)*bounce); |
| 329 | per_frame_45=vx4 = if(below(x4,0.9),vx4,-abs(vx4)*bounce); |
| 330 | per_frame_46= |
| 331 | per_frame_47=vy2 = if(above(y2,0),vy2,abs(vy2)*bounce); |
| 332 | per_frame_48=vy2 = if(below(y2,1),vy2,-abs(vy2)*bounce); |
| 333 | per_frame_49=vy3 = if(above(y3,0),vy3,abs(vy3)*bounce); |
| 334 | per_frame_50=vy3 = if(below(y3,1),vy3,-abs(vy3)*bounce); |
| 335 | per_frame_51=vy4 = if(above(y4,0),vy4,abs(vy4)*bounce); |
| 336 | per_frame_52=vy4 = if(below(y4,1),vy4,-abs(vy4)*bounce); |
| 337 | per_frame_53= |
| 338 | per_frame_54= |
| 339 | per_frame_55=q1 = x1; |
| 340 | per_frame_56=q2 = x2; |
| 341 | per_frame_57=q3 = x3; |
| 342 | per_frame_58=q4 = x4; |
| 343 | per_frame_59= |
| 344 | per_frame_60=q5 = y1; |
| 345 | per_frame_61=q6 = y2; |
| 346 | per_frame_62=q7 = y3; |
| 347 | per_frame_63=q8 = y4; |
| 348 | per_frame_64= |
| 349 | per_frame_65=monitor = ry4; |
| 350 | per_frame_66= |
| 351 | per_frame_67=zoom = 1; |
| 352 | warp_1=`shader_body |
| 353 | warp_2=`{ |
| 354 | warp_3=` ret.x = tex2D( sampler_main, (uv-0.5)*1.00+0.5 ).x; |
| 355 | warp_4=` ret.y = tex2D( sampler_main, (uv-0.5)*0.98+0.5 ).y; |
| 356 | warp_5=` ret.z = tex2D( sampler_main, (uv-0.5)*0.95+0.5 ).z; |
| 357 | warp_6=` |
| 358 | warp_7=` // .x = fastest layer, .z = slowest |
| 359 | warp_8=` // slowly shift stuff toward the front, over time: |
| 360 | warp_9=` ret += float3(-ret.x,ret.x-ret.y,ret.y-ret.z)*0.03; |
| 361 | warp_10=` |
| 362 | warp_11=` // ERROR DIFFUSION DITHER - looks great |
| 363 | warp_12=` float2 dither_uv = uv_orig*texsize.xy*texsize_noise_lq.zw + rand_frame.xy; |
| 364 | warp_13=` ret += (tex2D(sampler_noise_lq, dither_uv).xyz-0.5)/256.0*3; |
| 365 | warp_14=` |
| 366 | warp_15=` // darken over time |
| 367 | warp_16=` //ret -= 0.003; |
| 368 | warp_17=` //ret *= 0.99; |
| 369 | warp_18=` //ret *= 0.97 + 0.03*saturate( length(uv - uv_orig)*200 ); // center only |
| 370 | warp_19=`} |